package simple.demo.springintegration.demo.chapter5.model;

import java.util.concurrent.atomic.AtomicInteger;

public class HelloPrototype {
	private static final AtomicInteger counter = new AtomicInteger();
	
	private final int id;
	private InnerPrototype proto;
	
	public HelloPrototype() {
		this.id = counter.incrementAndGet();
	}
	
	public int getId() {
		return id;
	}
	
	public void setProto(InnerPrototype proto) {
		this.proto = proto;
	}
	
	public InnerPrototype getProto() {
		return proto;
	}
}
